package com.cloud.api.job;

import com.cloud.api.job.fallBack.JobTestFeignFallback;
import com.cloud.common.core.cons.CloudCons;
import com.cloud.common.core.model.response.SuccessResponses;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 测试模块Feign调用
 *
 * @author yan
 */
@FeignClient(contextId = "jobTestFeign", path = "/open/test", value = CloudCons.JOB, fallback = JobTestFeignFallback.class)
public interface JobTestFeign {

    @GetMapping("/load")
    SuccessResponses<String> sysLoad();

    /**
     * 分布式seata测试 扣减库存
     *
     * @return
     */
    @PostMapping("/seataReduceStore")
    SuccessResponses<Void> seataReduceStore();


}
